package com.ringtheweb.serviceprovider.weather.dao;

import java.util.List;

import com.ringtheweb.persistence.dao.IGenericDAO;
import com.ringtheweb.serviceprovider.weather.model.Location;
import com.ringtheweb.serviceprovider.weather.model.LocationType;

public interface ILocationDAO extends IGenericDAO<Location,Long>{
	
	List<Location> findByIDWithChildren(Long locationId);
	
	Location findByNameAndParent(String name,Long parentId);
	
	Location findByNameAndURLWithChildren(String name,String url);
	
	Location findByNameAndParentWithChildren(String name,Long parentId);
	
	List<Location> findByTypeAndApprochingName(LocationType locationType,String name);
	
	Location findByNameAndParentName(String name,String parentName,LocationType locationType);
	

}
